<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>员工管理系统 - 首页</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
</head>
<body>
<div class="dashboard-container">
    <header class="header">
        <h1>员工管理系统</h1>
        <div class="user-info">
            欢迎, ${loggedInUser.username}!
            <a href="${pageContext.request.contextPath}/logout" class="btn btn-secondary">退出登录</a>
        </div>
    </header>

    <main class="main-content">
        <div class="welcome-section">
            <h2>欢迎使用员工管理系统</h2>
            <p>这是一个基于 MyBatis 的员工信息管理系统</p>
            <a href="${pageContext.request.contextPath}/employees" class="btn btn-primary">员工管理</a>
        </div>
    </main>
</div>
</body>
</html>